package com.ssww.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * PropertiesUtil文件获取类
 * @author hgl
 *
 */
public class PropertiesUtil {
	/**
	 * 获取Properties属性值
	 * @param url Properties路径
	 * @param PropertieName  属性名
	 * @return String Value
	 */
	public static String getPropertiesValue(String url,String PropertieName){
		InputStream inputStream = PropertiesUtil.class.getResourceAsStream(url);   
		Properties properties=new Properties();
		
		try {
			properties.load(inputStream);
			inputStream.close();   
		} catch (IOException e) {
			e.printStackTrace();
		}
		return properties.getProperty(PropertieName);
	}
}
